import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
   {
        path: '/',
        // name: 'Home',
       redirect:'/Home',
        // component: () => import( '../views/Home.vue')
   },
    {
        path: '/home',
        name: 'Home',
        component: () => import( '../views/Home.vue')
    },
   {
    path: '/about',
    name: 'About',
    component: () => import( '../views/About.vue')
   },
    {
        path: '/serve',
        name: 'serve',
        component: () => import( '../views/serve.vue')
    },
    {
        path: '/news',
        name: 'news',
        component: () => import( '../views/news.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import( '../views/login.vue')
    },
    {
        path: '/blog',
        name: 'blog',
        component: () => import( '../views/blog.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import( '../views/register.vue')
    },
    {
        path: '/index',
        name: 'index',
        component: () => import( '../views/index.vue')
    },
    {
        path: '/content',
        name: 'content',
        component: () => import( '../views/content.vue')
    },
    {
        path: '/case',
        name: 'case',
        component: () => import( '../views/case.vue')
    }
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
});

export default router
